<?php
global $_W, $_GPC;
//分类列表
$category = pdo_fetchall("select name,id from " . tablename($this->t_category) . " where weid = :weid and status = :status", [':weid' => $_GPC['i'], ':status' => 1]);
return $this->getresult(0, '文章分类数据', ['code'=>200,'list' => $category]);